package com.huibur.devicecheck.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huibur.devicecheck.model.po.TaskPO;
import com.huibur.devicecheck.model.query.TaskQuery;
import com.huibur.devicecheck.model.vo.TaskVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/*******************************************************
* Title: TaskMapper.java
* Description:
* @author baiqingshuo
* @date 2021/9/24
* @version 1.0
*******************************************************/
@Repository
@Mapper
public interface TaskMapper extends BaseMapper<TaskPO> {

    /**
     * 任务列表(查询并分页)
     * @param page
     * @param taskQuery
     * @return
     */
    IPage<TaskVO> selectTaskList(@Param("page") Page<TaskPO> page,@Param("taskQuery") TaskQuery taskQuery);
}
